import request from '@/utils/request'

export function listAllMonitoring() {
  return request({
    url: '/binance/kConf/listAll',
    method: 'get'
  })
}

// 查询K线关注列表
export function listConf(query) {
  return request({
    url: '/binance/kConf/list',
    method: 'get',
    params: query
  })
}

// 查询K线关注详细
export function getConf(code) {
  return request({
    url: '/binance/kConf/' + code,
    method: 'get'
  })
}

// 新增K线关注
export function addConf(data) {
  return request({
    url: '/binance/kConf',
    method: 'post',
    data: data
  })
}

// 修改K线关注
export function updateConf(data) {
  return request({
    url: '/binance/kConf',
    method: 'put',
    data: data
  })
}

// 删除K线关注
export function delConf(code) {
  return request({
    url: '/binance/kConf/' + code,
    method: 'delete'
  })
}
